//
//  NSObject+additions.h
//  Tool
//
//  Created by ZJ on 17/2/15.
//  Copyright © 2017年 ZJ. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NSObject (additions)
/** 把对象转换成jsonString */
- (NSString *)jsonStringFromObject:(id)object;
/** 把jsonString转换成任意对象 */
- (id)jsonStringToObject:(NSString *)jsonString;

/** 寻找最上层控制器 */
- (UIViewController *)topViewController;

@end
